package org.styx.rabbitmq.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.styx.rabbitmq.component.TopicSender;

/**
 * @date 2021/10/14
 * @auther uranus
 */
@RestController
@RequestMapping("topic")
public class TopicController {
    @Autowired
    private TopicSender topicSender;

    @GetMapping("/send")
    public String topicTest(){
        topicSender.sendTopicQueue();
        return "ok";
    }
}
